﻿<UserControl x:Class="FM.录音.Views.菜单"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:viewModels="clr-namespace:FM.录音.ViewModels"
             d:DataContext="{d:DesignInstance Type=viewModels:菜单ViewModel}"
             d:DesignHeight="60"
             d:DesignWidth="600"
             mc:Ignorable="d">
    <Grid>
        <Menu HorizontalAlignment="Stretch"
              VerticalAlignment="Top"
              FontSize="18"
              Visibility="{Binding Is全屏,
                                   Converter={StaticResource Bool真隐藏}}">

            <MenuItem Command="{Binding 全屏Command}" Header="全屏(F11)" />

            <MenuItem Header="设置">
                <MenuItem.Icon>
                    <Image Width="16"
                           Height="16"
                           Source="/FM.素材;component/Images/系统设置64.png"
                           Stretch="Uniform" />
                </MenuItem.Icon>
                <MenuItem Command="{Binding 保存布局Command}" Header="保存布局" />
                <MenuItem Command="{Binding 选项Command}" Header="选项(F2)" />
            </MenuItem>

            <MenuItem Command="{Binding 退出Command}" Header="退出">
                <MenuItem.Icon>
                    <Image Width="16"
                           Height="16"
                           Source="/FM.素材;component/Images/退出64.png"
                           Stretch="Uniform" />
                </MenuItem.Icon>
            </MenuItem>
        </Menu>
    </Grid>
</UserControl>